<!DOCTYPE html>
<html lang="zh-cn">
<#include "../include/resource-head.ftl"/>
<link rel="stylesheet" href="/themes/plugins/fileinput/css/fileinput.min.css">
<body>
<#include "../include/common-header.ftl"/>
<div class="container col-center-block">
    <div class="order-list">
    <#list orderModelList as order>
        <div class="order-item">
            <div class="order-item-top">
                <strong>${order.addtime?string('yyyy-MM-dd HH:mm:ss')}</strong>&nbsp;&nbsp;&nbsp;
                <span>订单号:&nbsp;${order.orderno!}</span>
                <a href="/order/detail/${order.id}" class="pull-right">订单详情</a>
            </div>
            <#list order.orderItemModelList as item>
            <div class="order-item-detail">
                <div class="col-xs-4">
                    <a href="/food/detail/${item.foodId}">
                        <img src="/data/${item.foodIcon!}" height="80px" width="80px">
                        <span>${item.foodName!}</span>
                    </a>
                </div>
                <div class="col-xs-2">
                    <span class="text-red">￥${item.foodPrice?string("##0.00")}</span>
                </div>
                <div class="col-xs-2">
                    <span>${item.count}</span>
                </div>
                <div class="col-xs-2">
                    <span class="text-red">￥${item.price?string("##0.00")}</span>
                </div>
            </div>
            </#list>
        </div>
    </#list>
    </div>
</div>

<#include "../include/common-foot.ftl"/>
</body>
<#include "../include/resource-script.ftl"/>
</html>